package com.zking.ssm.service.impl;

import com.zking.ssm.mapper.SysUserRolerMapper;
import com.zking.ssm.model.SysUserRoler;
import com.zking.ssm.service.ISysUserRolerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysUserRolerServiceImpl implements ISysUserRolerService {

    @Autowired
    private SysUserRolerMapper sysUserRolerMapper;

    @Override
    public int updateByPrimaryKeySelective(SysUserRoler record) {
        return sysUserRolerMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int addRoleToUser(SysUserRoler s) {
        return sysUserRolerMapper.addRoleToUser(s);
    }

    @Override
    public int toUserRemove(SysUserRoler s) {
        return sysUserRolerMapper.toUserRemove(s);
    }
}
